/**
 * javascript工具类
 */

var Utils = {

};

//判断是否为android平台
Utils.isAndroidos = function() {
    var os = cc.sys.platform;
    if (os == cc.sys.ANDROID) {
        return true;    
    }
    return false;
};

//获得当前的缩放因子
Utils.isScaleY = function() {
    var frameSize = cc.view.getFrameSize();
    var winSize = new cc.size(1280,720);
    var scaleF = frameSize.width/frameSize.height;
    var scaleW = winSize.width/winSize.height;
    var scaleY = scaleF/scaleW;
    return scaleY;
};

module.exports = Utils